Conversation
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
cd4a5e7 to
fcdc068
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (1)
libs/fluxc/src/testFixtures/kotlin/org/wordpress/android/fluxc/wp/site/FakeCrashLogging.kt:1
- Using
printlnin test fixtures could cause issues in testing environments where stdout is redirected or captured. Consider using a no-op implementation or a list-based implementation that allows tests to verify logged events if needed.
package org.wordpress.android.fluxc.wp.site
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
libs/fluxc/src/testFixtures/kotlin/org/wordpress/android/fluxc/wp/site/FakeCrashLogging.kt
Outdated
Show resolved
Hide resolved
libs/fluxc/src/main/java/org/wordpress/android/fluxc/store/MediaStore.java
Outdated
Show resolved
Hide resolved
libs/fluxc/src/testFixtures/kotlin/org/wordpress/android/fluxc/logging/FakeCrashLogging.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| mApplicationPasswordsMediaRestClient.uploadMedia(payload.site, payload.media); | ||
| } else { | ||
| mMediaXmlrpcClient.uploadMedia(payload.site, payload.media); | ||
| reportXmlrpcTry(); |
There was a problem hiding this comment.
The reportXmlrpcTry() method only logs to Sentry but doesn't notify an error to the caller. When an upload operation falls into the XMLRPC path, it will silently fail without any error callback being triggered. This should notify an error using notifyMediaUploaded(payload.media, error) with an appropriate MediaError after logging.
| reportXmlrpcTry(); | |
| reportXmlrpcTry(); | |
| notifyMediaUploaded(payload.media, null); |
There was a problem hiding this comment.
I don't think it's really necessery to handle - we don't expect this path to be ever executed.
libs/fluxc/src/main/java/org/wordpress/android/fluxc/store/MediaStore.java
Show resolved
Hide resolved
libs/fluxc/src/main/java/org/wordpress/android/fluxc/store/MediaStore.java
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #15178 +/- ##
============================================
- Coverage 38.68% 38.68% -0.01%
- Complexity 10546 10547 +1
============================================
Files 2193 2193
Lines 124758 124758
Branches 17247 17247
============================================
- Hits 48260 48259 -1
- Misses 71619 71620 +1
Partials 4879 4879 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
And all associated methods, to simplify and clean codebase before database migration. Report to Sentry if the app tries to use XMLRPC.
1d719b1 to
74146c2
Compare
JorgeMucientes
left a comment
There was a problem hiding this comment.
Thanks for surfacing and cleaning this up @wzieba 🙏🏼
LGTM ![]()
Closes: AINFRA-1761: Remove
MediaXMLRPCClientDescription
Internally (p1767711517542759-slack-CGPNUU63E) we decided that XMLRPC is no longer needed for
Mediacontext. This PR removesMediaXMLRPCClientand logs a Sentry event, if the device requested XMLRPC (what shouldn't really happen anymore).Test Steps
Not needed: if the app builds, we're fine. The removed code was on a dead path.
Images/gif
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.